import { DivEvent } from "@tsparticles/engine";
import { Card, Col, Row } from "antd";

export interface PageElementProps extends React.HTMLAttributes<DivEvent>{
  children?: React.ReactNode;
  card?: boolean;
}
/**
 *
 * @param param0
 * @returns
 */
export default function PageElement({ children, card }: PageElementProps): JSX.Element {
  return (
    <Row gutter={20} justify={"center"}>
      <Col xl={20} lg={20} xxl={20} md={22} sm={22} xs={22}>
        {card ? <Card>{children}</Card> : children}
      </Col>
    </Row>
  );
}
